.rank-container {
  background-color: #283899;
  box-sizing: border-box;

  position: fixed;  // 固定整个容器
  // top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;  // 防止整体滚动

  display: flex;
  flex-direction: column;
  .tab-con {
    margin-top: 44px;
  }

  // sticky区域不需要特殊处理，保持原样即可
  .su-sticky {
    flex-shrink: 0; // 防止压缩
  }

  .top123 {
    
    // flex-shrink: 0; // 防止压缩
    background-color: #fff;
    border-radius: 10rpx;
    margin: 100rpx 20rpx 22rpx;
    display: flex;
    background-image: url('https://xyh-static-app.oss-cn-hangzhou.aliyuncs.com/storage/default/20250427/c2f6e63a1f553e0d827cfe24c6f02c46.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    background-position: center;
    // height: 184px;
    
    .item {
      flex: 1;
      display: flex;
      flex-direction: column;
      align-items: center;
      padding-top: 10rpx;
      box-sizing: border-box;
      .star {
        width: 85rpx;
        height: 53rpx;
        border-radius: 100%;
       
        image {
          width: 100%;
          height: 100%;
          border-radius: 100%;
        }
      }
      .avatar {
        width: 100rpx;
        height: 100rpx;
        border-radius: 100%;
        image {
          width: 100%;
          height: 100%;
          border-radius: 100%;
        }
      }
      .name {
        font-family: Source Han Sans;
        font-size: 32rpx;
        font-weight: 500;
        color: #8A4F2E;
        line-height: 1;
        padding: 20rpx 0 10rpx;
        // 超出隐藏
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 200rpx; // 添加最大宽度限制
        width: 100%;
        display: block;
        text-align: center;
      }
      .type {
        width: 180rpx;
        height: 50rpx;
        min-width: 50rpx;
        image {
          width: 100%;
          height: 100%;
        }
      }
      .sales {
        font-family: Source Han Sans;
        font-size: 28rpx;
        color: #B7B7B7;
      }
    }

    .top1 {
      background-color: #fff;
      position: relative;
      top: -46rpx;
      border-radius: 10rpx;
      .avatar {
        width: 144rpx;
        height: 144rpx !important;
        min-width: 144rpx;
        min-height: 144rpx;
        border: 4rpx solid #FFD236;
        image {
          width: 144rpx;
          height: 144rpx !important;
          min-width: 144rpx;
          min-height: 144rpx;
        }
      }
    }
    .top2 {
      .avatar {
        border: 4rpx solid #C5C5C5;
      }
    }
    .top3 {
      .avatar {
        border: 4rpx solid #E6996B;
      }
    }
  }

  .rank {
    border-radius: 60rpx 60rpx 0px 0px;
    background: #fff;
    padding: 32rpx 34rpx 90rpx 34rpx;

    flex: 1;  // 占据剩余空间
    overflow: hidden;
    display: flex;
    flex-direction: column;

    .scroll-view {
      flex: 1;  // 占据rank区域的剩余空间
      height: 0;  // 配合flex: 1使用
    }
 
    .list-item {
      display: flex;
      align-items: center;
      border-bottom: 1px solid #f2f2f2;
      padding: 26rpx 0;
      view, text {
        font-family: Source Han Sans;
        font-size: 30rpx;
        font-weight: 500;
        color: #202020;
      }
      .avatar {
        width: 88rpx;
        min-width: 43rpx;
        height: 88rpx;
        border-radius: 100%;
        image {
          width: 100%;
          height: 100%;
          border-radius: 100%;
        }
      }
      .name {
        display: flex;
        flex-direction: column;
        flex: 1;
        margin: 0 12rpx;
        .name-text {
          font-size: 30rpx;
          font-weight: 500;
          color: #202020;
        }
        .type {
          width: 180rpx;
          height: 50rpx;
          margin-top: 4rpx;
          image {
            width: 100%;
            height: 100%;
          }
        }
        
      }
      .sales {
        display: flex;
        flex-direction: column;
        align-items: center;
        .text {
          font-family: Source Han Sans;
          font-size: 32rpx;
          font-weight: 500;
          color: #202020;
        }
        .num {
          font-family: Source Han Sans;
          font-size: 28rpx;
          color: #B7B7B7;
          margin-top: 4rpx;
        }
      }
    }
    .list-item:last-child {
      border-bottom: 0;
    }
    .rank-num {
      width: 56rpx;
    }

  }

  .footer-tabs {
    position: fixed;
    bottom: 113rpx;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: space-between;
    width: 563rpx;
    height: 137rpx;
    border-radius: 100px;
    background: #FFFFFF;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.1);
    padding: 0 40rpx;
    .footer-tab-item {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      .icon {
        width: 60rpx;
        height: 60rpx;
        border-radius: 100%;
      }
      
      .title {
        color:#202020;
        font-family: Source Han Sans;
        font-size: 30rpx;
        font-weight: 500;
        margin-top: 4rpx;
      }
    }
    .active {
      .title {
        color: #3662EC;
      }
    }
  }
}

.fab-container {
  position: fixed;
  right: 13rpx;
  bottom: 135rpx;
  z-index: 999;
}

.fab-button {
  width: 100rpx;
  height: 100rpx;
  z-index: 1000;
  transition: transform 0.3s ease;
  image {
    width: 100%;
    height: 100%;
  }
}

.fab-button--active {
  transform: rotate(135deg);
}

.fab-icon {
  color: white;
  font-size: 40rpx;
  font-weight: bold;
  transition: transform 0.3s ease;
}

.fab-menu {
  position: absolute;
  bottom: 0;
  right: 100rpx;
  width: 300rpx;
  height: 300rpx;
  pointer-events: none;
}

.fab-menu__item {
  position: absolute;
  width: 110rpx;
  height: 110rpx;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: auto;
  bottom: 10rpx;
  right: 10rpx;
}

.fab-menu--active {
  .fab-menu__item {
    &:nth-child(1) {
      transform: scale(1) translate(80rpx, 130rpx); 
    }
    &:nth-child(2) {
      transform: scale(1) translate(-10rpx, 80rpx);
    }
    &:nth-child(3) {
      transform: scale(1) translate(-50rpx, -10rpx);
    }
    &:nth-child(4) {
      transform: scale(1) translate(10rpx, -90rpx); // 左右 上下
    }
    &:nth-child(5) {
      transform: scale(1) translate(100rpx, -120rpx); // 收益
    }
  }
}

.fab-menu__item-image {
  width: 110rpx;
  height: 110rpx;
  border-radius: 50%;
}